package hotel.base.oversea.utils;

import lombok.*;

import java.io.Serializable;

/**
 * @author zhangjinzheng
 * @date 2019-11-22
 */
@Builder
@ToString
@AllArgsConstructor
public class ResultMt<T> implements Serializable {

    @Getter
    @Setter
    private int code = 0;

    @Getter
    @Setter
    private String message = "success";

    /**
     *
     * @param msg  错误信息
     * @param code 错误码
     */
    public ResultMt(String msg, int code){
        super();
        this.code=code;
        this.message=msg;
    }

    public ResultMt(){
        super();
    }

}
